package cn.edu.scau.cmi.liujiaming.chapter06;

public class MainClass {
	public static void main(String []arg) {
		Student zhang=new Student();
		double area=zhang.area(new Rectangle(2,3),new Circle(5.2),new Circle(12));
		System.out.printf("两个圆和一个矩形图形的面积和：\n%10.3f\n",area);
		area=zhang.area(new Triangle(6,8,10),new Circle(5.2),new Circle(12));
		System.out.printf("两个圆和一个三角形图形的面积和：\n%10.3f",area);
	}

}
